package eight.test_8_5;

import javax.swing.*;
import java.util.Scanner;

public class TestMain1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;
        str = str.toLowerCase();
        int[] arr = new int[26];
        int tmp = 0;
        for (int i = 0; i < str.length(); i++) {
            int c = str.charAt(i) - 'a';
            if (arr[c] == 0) {
                tmp++;
            }
            arr[c]++;
            max = Math.max(max,arr[c]);
            min = Math.min(min,arr[c]);
        }
        int count = 0;
        if(tmp > 1) {
            count = max - min;
        } else {
            count = max;
        }
        for (int i = 2; i < count / 2; i++) {
            if(count % i == 0) {
                count = 0;
                break;
            }
        }
        if(count == 0 || count == 1) {
            System.out.println("No Answer");
            System.out.println(0);
        } else {
            System.out.println("Lucky Word");
            System.out.println(count);
        }
    }
}
